<%@ page contentType="text/xml; charset=UTF-8" language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"
	prefix="c"%><%@ taglib prefix="sp"
	uri="http://www.springframework.org/tags"%><%@ taglib prefix="form"
	uri="http://www.springframework.org/tags/form"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<% 

	Object title = request.getAttribute("title");
	Object xTitle = request.getAttribute("xTitle");
	Object yTitle = request.getAttribute("yTitle");
	Object dataTemp = request.getAttribute("dataTemp");
	String data = dataTemp == null?"":dataTemp.toString();	
	
	Object title_enabled = request.getAttribute("title_enabled");
	Object title_font_size = request.getAttribute("title_font_size");
	Object axis_title_enabled = request.getAttribute("axis_title_enabled");
	Object axis_title_font_size = request.getAttribute("axis_title_font_size");
	Object legend_enabled = request.getAttribute("legend_enabled");
	Object legend_position = request.getAttribute("legend_position");
	Object legend_align = request.getAttribute("legend_align");
	Object animation = request.getAttribute("animation");
%>
<anychart> 
<settings>
  <!--初始化的时候是否显示动画效果-->
  <animation enabled="<%=animation %>" /> 
 </settings>  
 <charts>  
	<chart> 
	<data_plot_settings default_series_type="Bar" > 
        <bar_series point_padding="0.2" group_padding="1" style="AquaDark">
        </bar_series>  
      </data_plot_settings>
      <data><%=data %>
      </data>  
      
      	<chart_settings>
			<title enabled="<%=title_enabled%>"> <!-- title显示     true false -->
				<font size="<%=title_font_size %>">  <!--  color="green" family="华文行楷" -->
					<effects> 
						<drop_shadow enabled="true" distance="2" opacity="0.5" blur_x="2" blur_y="2"></drop_shadow>
					</effects>
				</font>
				<text><%=title %> </text>
			</title>
			<axes>
				<y_axis>
				
					<title>
						<font size="<%=axis_title_font_size %>"> <!-- family="华文行楷"  --> 
							<effects> 
								<drop_shadow enabled="true" distance="2" opacity="0.5" blur_x="2" blur_y="2"></drop_shadow>
							</effects>
						</font>
						<text><%=yTitle %></text>
					</title>
				</y_axis>
				<x_axis>
				<zoom enabled="false" inside="true" start="-1" visible_range="8" /> 
					<title enabled="<%=axis_title_enabled%>">
						<font  size="<%=axis_title_font_size %>"> <!--  color="blue" family="华文行楷" -->
							<effects> 
								<drop_shadow enabled="true" distance="2" opacity="0.5" blur_x="2" blur_y="2"></drop_shadow>
							</effects>
						</font>
						<text><%=xTitle %>	</text>
					</title>
				</x_axis>
			</axes>

				
			<chart_background enabled="true">     <!-- 是否去除图表边框 -->
				<border enabled="false">
					<fill enabled="true" />
				</border>
			</chart_background>

			<legend enabled='<%=legend_enabled%>' position='<%= legend_position%>' align_by='Chart' rows_padding='0' align='<%=legend_align%>'>
 				 <format>{%Icon} {%Name} {%duration} </format> 
 				 <title enabled="True">
	 				<text><fmt:message key="template.legendTitle" /></text>
					<font size="18" bold="false"  family="黑体" /> 
	 				<background enabled="True">
					<border enabled="false" />
	 				</background> 
				</title>
 				<title_separator enabled="true" /> 
 				<background enabled="true" /> 
 			</legend> 
		</chart_settings>
		
    </chart>  
  </charts>  
</anychart> 